﻿#ifndef REMINDONCE_H
#define REMINDONCE_H

#include "common/baseeditordialog.h"
#include "addonce.h"

namespace Ui {
class RemindOnce;
}

class RemindOnce : public BaseEditorDialog
{
    Q_OBJECT

public:
    explicit RemindOnce(QWidget *parent, const QSqlDatabase &db);
    ~RemindOnce();

    void updateView();
    void createMenu();
    void search();

    void addItem();
    void removeItem();

signals:
    void timerStart();

private slots:
    void on_tableView_clicked(const QModelIndex &index);

    void on_btn_clean_clicked();

    void on_btn_save_clicked();

    void on_btn_start_clicked();

private:
    Ui::RemindOnce *ui;

    QSqlDatabase _db;
    QString uid;
};

#endif // REMINDONCE_H
